package com.cn.ant.modules.volunteer.entity;

import com.cn.ant.modules.school.entity.School;
import org.hibernate.validator.constraints.Length;

import com.cn.ant.common.persistence.MyDataEntity;

/**
 * 学校与志愿组合Entity
 * @author 黄根华
 * @version 2015-10-11
 */
public class VolunteerSchool extends MyDataEntity<VolunteerSchool> {
	
	private static final long serialVersionUID = 1L;
	private String vId;		// 志愿组合编码
	private String schoolCode;		// 学校国标
	private String schoolCodeSn; //学校省标
	private String schoolName;		// 学校名称
	private int schoolLevel;		// 学校优先级
	private String schoolType;		// 推荐类型
	private Double lqRate;		// 录取概率

	private School school;//关联的学校
	
	public VolunteerSchool() {
		super();
	}

	public VolunteerSchool(String id){
		super(id);
	}

	@Length(min=0, max=32, message="志愿组合编码长度必须介于 0 和 32 之间")
	public String getVId() {
		return vId;
	}

	public void setVId(String vId) {
		this.vId = vId;
	}
	
	@Length(min=0, max=20, message="学校国标长度必须介于 0 和 20 之间")
	public String getSchoolCode() {
		return schoolCode;
	}

	public void setSchoolCode(String schoolCode) {
		this.schoolCode = schoolCode;
	}

	public String getvId() {
		return vId;
	}

	public void setvId(String vId) {
		this.vId = vId;
	}

	public String getSchoolCodeSn() {
		return schoolCodeSn;
	}

	public void setSchoolCodeSn(String schoolCodeSn) {
		this.schoolCodeSn = schoolCodeSn;
	}

	@Length(min=0, max=64, message="学校名称长度必须介于 0 和 64 之间")
	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	
	@Length(min=0, max=6, message="学校优先级长度必须介于 0 和 6 之间")
	public int getSchoolLevel() {
		return schoolLevel;
	}

	public void setSchoolLevel(int schoolLevel) {
		this.schoolLevel = schoolLevel;
	}
	
	@Length(min=0, max=4, message="推荐类型长度必须介于 0 和 4 之间")
	public String getSchoolType() {
		return schoolType;
	}

	public void setSchoolType(String schoolType) {
		this.schoolType = schoolType;
	}
	
	public Double getLqRate() {
		return lqRate;
	}

	public void setLqRate(Double lqRate) {
		this.lqRate = lqRate;
	}


	public School getSchool() {
		return school;
	}

	public void setSchool(School school) {
		this.school = school;
	}
}